old_contents: var os = require('os')
    , path = require('path');
  
  var p = {};
  
  for (key in path) {
      if (typeof path[key] === 'function') {
          p[key] = path[key];
      }
  }
  path = p;
  
  function Darwin() {
  	this.tempdir = function() {
  		return '/tmp';
  	}
  	
  	this.homedir = function() {
  		 return process.env['HOME'];
  	}
  
  	this.datadir = function(appname) {
  		return this.homedir()+"/Library/Application Support/"+appname;
  	}
  }
  
  function Linux() {
  	this.tempdir = function() {
  		return '/tmp';
  	}
  	
  	this.homedir = function() {
  		 return process.env['HOME'];
  	}
  
  	this.datadir = function(appname) {
  		return this.homedir()+"/.config/"+appname;
  	}
  }
  
  function Windows() {
  	this.tempdir = function() {
  		return process.env['TEMP'];
  	}
  	
  	this.homedir = function() {
  		 return process.env['USERPROFILE'];
  	}
  
  	this.datadir = function(appname) {
  		return process.env['APPDATA'];
  	}
  }
      
  var ost = os.type().toLowerCase();
  
  var OSObj = null;
     if (ost.indexOf('lin') === 0) {
          OSObj = new Linux();
      } else if (ost.indexOf('darwin') === 0) {
  		OSObj = new Darwin();
      } else if (ost.indexOf('win') === 0) {
  		OSObj = new Windows();
      } else {
          return null;
      }
  
  if (path.tempdir == null) {
      path.tempdir = OSObj.tempdir;
  }
  
  if (path.homedir == null) {
      path.homedir = OSObj.homedir;
  }
  
  if (path.datadir == null) {
      path.datadir = OSObj.datadir;
  }
  
  module.exports = path;
  
  
  
new_contents: var os = require('os')
    , path = require('path');
  
  var p = {};
  
  for (key in path) {
      if (typeof path[key] === 'function') {
          p[key] = path[key];
      }
  }
  path = p;
  
  function Darwin() {
  	this.tempdir = function() {
  		return '/tmp';
  	}
  	
  	this.homedir = function() {
  		 return process.env['HOME'];
  	}
  
  	this.datadir = function(appname) {
  		return this.homedir()+"/Library/Application Support/"+appname;
  	}
  }
  
  function Linux() {
  	this.tempdir = function() {
  		return '/tmp';
  	}
  	
  	this.homedir = function() {
  		 return process.env['HOME'];
  	}
  
  	this.datadir = function(appname) {
  		return this.homedir()+"/.config/"+appname;
  	}
  }
  
  function Windows() {
  	this.tempdir = function() {
  		return process.env['TEMP'];
  	}
  	
  	this.homedir = function() {
  		 return process.env['USERPROFILE'];
  	}
  
  	this.datadir = function(appname) {
  		return process.env['LOCALAPPDATA']+"\\"+appname;
  	}
  }
      
  var ost = os.type().toLowerCase();
  
  var OSObj = null;
     if (ost.indexOf('lin') === 0) {
          OSObj = new Linux();
      } else if (ost.indexOf('darwin') === 0) {
  		OSObj = new Darwin();
      } else if (ost.indexOf('win') === 0) {
  		OSObj = new Windows();
      } else {
          return null;
      }
  
  if (path.tempdir == null) {
      path.tempdir = OSObj.tempdir;
  }
  
  if (path.homedir == null) {
      path.homedir = OSObj.homedir;
  }
  
  if (path.datadir == null) {
      path.datadir = OSObj.datadir;
  }
  
  module.exports = path;
  
  
  
subject: fix for windows