mac_init.sh - update and improve mac_init.sh