compatiable run.sh with Linux and Mac