Add filename check
Merge pull request #86 from molchanoviv/master

Add filename check