optimized install_denependencies.sh