diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -5,9 +5,6 @@ var Fs = require("fs")
   , Path = require("path")
   ;
 
-// Constants
-const PATH_SEP = Path.sep;
-
 // Constructor
 var Streamp = module.exports = {};
 
@@ -41,7 +38,7 @@ function prepareOptions(options) {
  * @return {Stream} The created stream.
  */
 function createStream(func) {
-    var dir = this.options.path.split(PATH_SEP).slice(0, -1).join(PATH_SEP);
+    var dir = Path.dirname(this.options.path);
     Mkdirp.sync(dir);
     return Fs[func](this.options.path, Ul.deepMerge(
         {}
Use path.dirname instead of splitting