add new function to find bad file links, bad \attachfile{} and attachfile links