change some command to mac compatible format