Search up a directory for wp-config file

Somewhat inelegant but effective way to search up a directory for wp-config file to loading if it doesn't exist in the current directory. This is useful since wp-config.php can exist one directory level above the WordPress install (which for many is htdocs itself)