file extension matching

Have a look at the long commit messages on the files changed for more details but basically the regex that was in there wasn't matching either the very first or very last extension in the config/files.php file because of erroneous slashes appended/prepended to the regex pattern