Adding RGROUPS var to make templates platform independent