make program_VERSION a local variable

Otherwise we may end up overriding what was manually set in the
environment.