Refactor: remoted: Strip trailing comment in load_env_vars()
We don't want to do this until after parsing the value, because a '#'
character inside a quoted value should be treated as part of the value.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>