Fixed mkMhiLinks so it works as expected.

Changed to /bin/bash.
Create destdir if it doesn't exist.
Created function doLinks to set up destdir.
Fixed linking so that it creates a working setup.