added more dependacy checking to init.sh