only reset umask if we actually changed it