mksh support

Adds support for mksh, also in preparation for a future integration of shells/mksh into Factory. Please submit to aaa_base package in Factory and 13.1.