Do not use finfo if phpversion == 5.2