This error message "don't know what to do with file" can also occur if you have a BSON file that does not have a .bson file extension.
Generally this isn't a problem since mongodump
generates the files with .bson extensions, but in my case I had a BSON file that was not generated by mongodump
and had a different file extension.