CHanged ps and grep command to work on macosx