Fix the shell scipt for mac.