install.sh: move `source functions.sh` as far up as possible.

That's more logical. There is no code affecting the system, only preparations.
install.sh: be more friendly (warn if SETUP_PROFILE is not set, ask to begin installation).