Fix GLOBAL_VERSION tag handling

This amends 63d46aa38a8984ca9885f82a496f7f4fa222f3f9

Change-Id: I5da60dae5b3e634b236b4a1c4e1e406338e235bc
Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>