Use finfo_open to get mine type when PHP is 5.3 or greater
Merge pull request #4 from lewiswharf/master

Fixes mime type in PHP 5.3 and greater