fix multiple document generation

ignoring the exact file we were attempting to detect...