Update init.sh for FreeBSD compatibility.