Write the generated sh scripts to log instead of tmp so they don't disappear between deployments.