build_wrapper: Add validation for APPLICATION_NAME and APPLICATION_VERSION

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