fix Error opening terminal: unknown. with recent installimage script

Added export TERM=xterm before running the installimage command.

Hetzner uses a tool that requires a term in the current installimage script.