[INSTALL] Improved `mod_rewrite` check

added extra tests & refacto

following https://github.com/open-classifieds/openclassifieds2/issues/845#issuecomment-49769990