fix checking if mod_rewrite is enabled
config files for apache 2.2 and 2.4