Fix error of undefined file. Force return when no more files to check.
Merge pull request #48 from elfreyshira/fix-file-undefined

Fix error of undefined file. Force return when no more files to check.