Fixes Issue #2

Fixes issue #2 by removing the directory part if the file name.
Merge pull request #3 from guiraldelli/patch-1

Thanks guiraldelli! Fixes Issue #2