Change OS detection and rejection to be same as os_detect.sh