improve compatibility with CentOS 5

On CentOS 5 (and possible older releases) the _%packages_ command does not seem to support _%end_, thus leading to an anaconda error.