Glue code for invoking the file command line tool and converting its output.