FilesystemLoader updated

One more case for find file without extension and some code refactoring.