fix apache_custom_fragment template for apache2.4

The module isn't working with Apache 2.4 right now. This will check the apache_version and use the correct permissions