Genral change to mkdev.sh, will complete later