tools.deploy.test: use temp directory for deploy image.