Switching from string matching to regex to determine if file is in genlib