update the working directory