[OS-BUILD PATCHv2] redhat: fix the check for the n option