Corrected bash lib to be compatible with cygwin