refactored FileSystemLoader to automatically add extensions and underscores if asked