Use `replaceExtensions` option properly.

Prior to this change, the `replaceExtensions` list was never used, and we attempted to match all files.