modifing init script to work when matlab is not installed