Fix filetype/1

Fix error for directories with name contain "." symbol
Merge pull request #1 from m-2k/master

Fix filetype/1 #1