Pull path module updates from nodejs.
Merge pull request #1089 from Gozala/hotfix/path

Pull path module updates from nodejs. a=@gozala