Added additional rewrite checks to the installer