Fixes "catch 22" situation with the check.sh