mime type cmd that works on ubuntu and osx