Fix for basename
Merge pull request #3 from mottosso/master

Fix for basename