Fix fileinfo requirement and have compat with last version of fileinfo module (php). closes #2276