Method to reset working directory.