The --login (-l) option advises sh to act like a login shell (which is not the case when normally invoked by ssh) and source /etc/profile and one of ~/.bash_profile, ~/.bash_login, and ~/.profile. This makes commands run in user specified environments and also enables built-ins like the module command. The behavior can currently be achieved by passing "sh -l " + your_command to submit.