Add basic support for default directories; fix resolution order in TargetConfig