Add support complex version number.

Add support to use static text and environment variable in version
field.