Factor check_install.sh into re-usable file.