Merge pull request #1117 from tubalmartin/Upload|library|2.1-stable

2.1 stable - CI_Upload::_file_mime_type() could've failed if popen() is used for the detection.