only reset environment variables if invalid buildrunner is detected