Fixed crash when the input directory/path contains spaces.

- Switch from File::Glob to File::Find
- Support recursive scanning as a side-effect.