Fixes search location of lock file.