Bringing test_dir_upwards() up to project standards

Using this function to recurse up the directory tree looking for the
configuration file. Renamed to test_dir_upwards() because the function
is just testing with [ $1 $2 ]. Switched to $(execute) from `execute` as
the latter is preferred. Tested, this works well.