I think it should be doc/ with the slash, so it doesn't test any file with "doc" in its name again.