Update buildscript to allow selective extraction of text from version.txt