getBasename function supports filenames with multiple '.' in extension
Merge pull request #12 from mkcode/fix-globs

getBasename function supports filenames with multiple '.' in extension