implement for Cygwin as well