Support {version} variable name

Also remove the requirement of `base` parameter being present to use variables.

Thanks @kimus!