fixed convenience shell script for mac