Fix some commands on OSX