Added mac support to scripts.