Introduce a guard to avoid bad rpm build