Refactoring bower pattern property

Based on your suggestion to internalise the regex in #14. The bower pattern can be a string or a regex.