[*] Installer : added safe, automatic detection of rewrite