Update workdir.cpp