Added option to set working directly and run commands directly if on mac