Fix the condition to work with v 2.0 too

Change-Id: I93e929627bd057f5eaec26b3cf8b7c2c55c54363
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>