fix environment handling in systemd unit