fixing update version script variable expansion