Added a a script to replace environment variables.

Fails with recursive variables, like PATH usually is.
Added a bootsrap with an error function that outputs to stderr.