simplify mimetype parsing of 'file' output
Merge pull request #1528 from owncloud/simplify_file_mimetype_parsing_stable45

simplify mimetype parsing of 'file' output