ensure to match Path.basename with string
Merge pull request #5 from parroty/fix

ensure to match Path.basename with string