// Clone env, dont mutate
var env = module.exports = require('xtend')(process.env)

env.ProgramFiles_x86 = env['ProgramFiles(x86)'] || env['ProgramFiles']
env.ProgramFiles_x64 = env.ProgramW6432 // "C:\Program Files" on x64

if (!env.USERPROFILE)
  env.USERPROFILE = env.HOMEDRIVE + env.HOMEPATH

// eg, "%USERPROFILE%\AppData\Local" or
//     "%USERPROFILE%\Local Settings\Application Data" (XP)
if (!env.LOCALAPPDATA)
  env.LOCALAPPDATA = env.USERPROFILE + '\\Local Settings\\Application Data'
