Check file format with "file command" before RMagick for response quickness 2