now that we know that compile stomps on cwd, let's use a staging dir