Loader: allow to override fileType detection