Fixed rewrite check on new installs