Fix for "file" command usage on old systems

The mime-type detection in UA (using "file") failed on old systems
because old versions of "file" do not have --mime-type option.
We shall use the more verbose alternative ("-i"/"-mime") as a fallback now