I can confirm that the above fix posted by Diah DOES work. However I did have one small issue applying the fix. When copying and pasting from the "code" sections into textedit on my Mac the text kept a grey background which messed up the .commad script. Easy fix just simply go Format>Make Plain Text and he save the file, change from .txt to .command and chmod like in Diah's example.