Updated scripts for Mac compatibility.