private static String resolveEnvVariables(String path) {
		for (String i : env.keySet()) {
			String p = i.replace("(", "\\(").replace(")", "\\)");
			String r = env.get(i).replace("\\", "\\\\");
			path = Pattern.compile("%"+p+"%", Pattern.CASE_INSENSITIVE).matcher(path).replaceAll(r);
		}
		return path;
	}