Installer: Write environment variables as expandable strings

This allows to refer to other variables from within a variable.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>