Adding multi-platform support.

I needed something like path-extra for one of my own projects, but I also needed cross-platform support. I took the liberty of adding that to this library instead of starting a new module.