Try to set the file type for text files using MIME lookup

This will help to avoid unexpected file types assignments that can happen due Linux's magic chars.
Also improves the perf of `get` command, as it doesn't need to execute the `file` command for text types.