Fix platform dependant path building.