preserve_current_directory in TreeChain