Partially fix passing environment through to SSH mode

Dropbear doesn't have a facility to add arbitrary environment to client
processes; fix /etc/profile workaround to work at least for shells.