pathToLocal for mac