checking only for php 5.3 is not enough to be able to use finfo_open. Added a check to see if the function exists
Fixed issue #1821