format paths to linux or windows