Fixed a bug with sourcing variables from the config file – previously,
the script was not set up to properly locate the config file in all
scenarios. Also added better error handling and a verbose mode.