Refactor the check for a proper yacc binary