revert to final working directory