fix broken git location lockfile scenarios