Try to detect whether the file is a text file by name or extension.
This will avoid invalid type detections in `file` command, due to
Linux's magic chars.
Merge pull request #6 from action-io/check-for-mime-type

Set the file type to text for known text files