fixes #4686 - don't rely on Puppet[:config] to store config file location

Tested on 2.7.25 and 3.5.0-rc1.