Fix sudo call, and some other stuff.
Fix sudo call, and some other stuff.

Sudo sets $USERNAME so if the invoking user is sudoed,
the commands get invoked not with factorio user but with current user,
which fails. Refactored to fix.

factoriommo/factorio-multienv-ctl