If so why then pick default config rather than what is passed as a variable? Here is another case when it will fall back to the default one instead using what is set as a variable:

set Name=$SYSTEM.Util.GetEnviron("RESOURCE_DB_NAME")
set Path=$SYSTEM.Util.GetEnviron("RESOURCE_DB_PATH")
set Properties("Directory")=Path
set Status=##Class(Config.Databases).Create(Name,.Properties)