use a number of methods to try to find a build number in a form

including pattern matching in the meta.appVersion.#text
and pull this out for reuse
change a reference to .get_form to just .form
Merge pull request #1298 from dimagi/robuster-build-version

use a number of methods to try to find a build number in a form