Support for windows, replacing slashes with path.join()