fix permissions error for cygwin