Refactored centos repo templates to work under any distribution release and architecture