change lock file to not the dir