file command diff in Darwin & Linux

Signed-off-by: lisicheng <lisicheng2008@gmail.com>