Fix version finding mechanism

Neither programmatic querying nor reading from the META_INF resources
appears to work under Dalvik, so writing the version into a properties
file at build time seems the most robust solution.