Fix to init.sh to remove usage of double [[ for if statements, does not work on Ubuntu shells.