Fixes #5109: Cleanup environment before building rudder-agent-thin