var fs = require('fs'),
    path = require('path');

function mkpathSync(p, permissions) {
    if (typeof permissions === 'undefined') {
        permissions = '0777';
    }
    if (!/^\//.test(p)) {
        p = process.cwd() + '/' + p;
    }
    p = path.normalize(p).replace(/\/$/, "");
    if (!(fs.existsSync || path.existsSync)(p)) {
        var fragments = p.split("/");
        if (fragments.length > 1) {
            mkpathSync(fragments.slice(0, fragments.length - 1).join("/"), permissions);
            fs.mkdirSync(p, permissions);
        }
    }
}

module.exports = mkpathSync;

@@ -280,10 +280,10 @@
 $/, 
-%22%22
+''
 );%0A 
@@ -363,19 +363,19 @@
 p.split(
-%22/%22
+'/'
 );%0A     
@@ -478,11 +478,11 @@
 oin(
-%22/%22
+'/'
 ), p

fix jslint errors