Fix path bugs when compiled on Linux.