setup scripts: do as little as possible in the sourced script

Signed-off-by: Christopher Larson <kergoth@gmail.com>