Filename extensions do not contain slashes

Now filenames like "../foo" don't extract a bogus extension of "./foo".
Merge pull request #23 from tsibley/extension-extraction

Filename extensions do not contain slashes