More portability changes.
Introduced $DIST to appscale_install_functions.sh