Fix makefiles

* Remove unused `DMD` definition.
* Fix `LINKCMD` to use proper `dm` location.
* Remove 3 accidentally added `*.bak` files.