Fixes publish script so cygwin won't mess with the permissions.