move hostname checking from installer.php to setup.sh/installer.sh