[-] Installer: Fix the installation when safe_mode is enabled