Just for historical interest, we discovered the reason that you would search using a regex: because a cookbook can be composed of files from two separate directories, and this class only knew one of the cookbook roots, it couldn't know the prefix for all the files.  I deleted the regex and passed both cookbook roots through to this class so it could match against actual directories (which is far more reliable).