Better config file finding

Walk parent directories until we find a config file or reach the root and fail.