replace agent start/stop exec, because of unnecessary environment variables during build can result in unpredictable results