Fix lock file issue on Linux