fixes #6963 - make templates compatible with RHEL 5