support env function for windows