lib.pathIsDirectory doesn't follow symlinks causing the git revision detection to fail if NIX_PATH points to a symlink.