Handle cache refreshing when the defexpr is a git repo (a clone of nixpkgs)