Changed shell script to work on ZSH for MAC