fix gb execution in main.cpp::getcwd2() function.