Fixed detection of mod_rewrite support