make makeenv.sh posix compatible