Sorry, I don’t have these applications, so I don’t know about them.
This all also depends on which mksh you’re using.
Basically, mksh looks in "${ENV:-~/mkshrc}", and the path has been
changed to /system/etc/mkshrc in the in-tree AOSP version. There’s
also /etc/profile and ~/.profile…