Reset bad_regex when a file is deleted.