Fix environmental variabls with embedded ruby.