Corrected critical bug when useing list of files; added unit tests
Merge branch 'hotfix/is_dir'