More fine tuning of the mime of the opened file
In fba90677 we introduced a "if we're told this is a text file let's check the mime of the content only since text files never fail to open".
This extends it to anything that inherits from text now, so if you rename a PDF file to bla.php it still tries to open as a pdf first and if that files as a php file