put fixed for folder = filename bug
Merge pull request #34 from kevinchabreck/dir_check

put fixed for folder = filename bug