gradle file: use flavour specific versionCode/versionName, fall back to parsing line by line
As discussed in #420: If a gradle flavour is specified, try to parse versionCode/versionName only in this part of build.gradle. If this fails, then fall back to old system.