read lockfile from the right location