Make CtrlPSetWorkingPathMode a global not buffer variable.