fixed regexes that would fire incorrectly for package names that were substrings of each other