fix error on dirs and non-files via stat check
add missing test fixture 08_dir
Merge pull request #19 from KylePDavis/bugfix/use_stat_isFile

fix error on dirs and non-files via stat check