Fixed acumulation of quotes in variables that can lead to script errors.

Fixed quotes in the variable assignments that was causing the scripts to crash.