Improve logging in stageout script.