I'm not sure I understand.  The confdir as I understand it is the directory that holds the INI files.  I'm looking for the vardir, which is specified inside one of those INI files, but references a different location.  Or are you saying I should parse the file and get the setting that way?

On example 2, I'm currently just appending one line to the config.ini.  I could overwrite the whole thing.  I tried to find where that was in code and couldn't.  Do you know where that file is originally created? Just wondering what other settings I should have in there if I overwrite the original one.