Fix for paths.go to support OSX