Add ability to read from options file to check_mysql_query.c

This is the same code that was added to check_mysql.c in 5ed7194.