Fix building file paths. Now it works cross OSs