Fixes %end section on RHEL5 and older