[OS-BUILD PATCH] redhat/configs: Fix rm warning on error