diff --git a/node-persist.js b/node-persist.js
index <HASH>..<HASH> 100644
--- a/node-persist.js
+++ b/node-persist.js
@@ -259,7 +259,8 @@ var setOptions = function (userOptions) {
         }
 
         // dir is not absolute
-        if (options.dir[0] !== '/') {
+        options.dir = path.normalize(options.dir);
+        if (options.dir !== path.resolve(options.dir)) {
             options.dir = path.join(dir, "persist", options.dir);
             if (options.logging) {
                 console.log("Made dir absolute: " + options.dir);
Be more forgiving to paths on Windows