Replace \t for the space, Add osx under the gnu stat command support

I use osx, but I'm not used bsd some commands by installing coreutil, use the gnu some commands, but in the 
segments/wan_ip.sh which use the stat command syntax is a problem, Because the default will allow me to use 

```
stat -f "%m" ${tmp_file}
```
I added  judgment