Simplify code in get_config()

Exact same behavior. The reference was just redundant.
Merge pull request #3053 from vlakoff/get_config

Simplify code in get_config()