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

Ticket: http://www.rudder-project.org/redmine/issues/5109

To be merged in 2.11