Fixes #97 - empty base path when scanning folder

When scanning folder, `files` will have single entry with path to that folder. So when `files.length === 1` and file name ends with directory separator, we'll return that name instead of empty string.