fix cygwinizms, bashizms, dashizms