copy tree *before* building emulator