made prompt mostly compatible with cygwin