Refactor: Replace character array with std::string workdir