Use file.NormalizePath rather than file.transformPath since we will
need this in a lot of different spots.
Normalize paths for building trees.