bin/paper: get mimetype easier