added logic to search for config files in the root of the build directories or a given location