Fix bug in check_dependencies()
Rewrite setup_diet_dir()
reformat setup_shell()