FS-5480

Changed set_profile_var so that it overwrites existing variables, instead of adding.