fixed export functionality in cygwin environment