Expose platform independent path separators
auto merge of #11642 : erickt/rust/path, r=huonw

This pull request exposes a platform independent way to get the path separator. This is useful when building complicated paths by hand.