build_wrapper: Fix missing 'global' in init_env()

Without the global keyword we are not able to modify the variables
globally.

Change-Id: I3bf27b9d5cabf25d52fe9ba184e9d4a8cd455136
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>