more config mode fixes (this might break on windows, will revisit)