Properly determine conf_dir

lstrip() strips each char independently. Not the whole string as a whole
Merge pull request #8130 from UtahDave/develop

Properly determine conf_dir