changed sourcing of the config.sh to occur after the file is confirmed to exist