changing is_dir checks to file_exists + include
Merge pull request #229 from Haensel/develop

changing is_dir checks to file_exists + include