Fix printing from stdin, detect mimetypes from job types