Changed "set" command

Should work for HOME and PATH.
Has been tested.