Fix AttributeError on certain files

Fix AttributeError when \include, \input, or \bibliography are included
in a verbatime environment.