dolt: use shell wrappers and other small prettyfication

Make the code more readable.
dolt: improve automake support

Ease having a distcheck compliant build system.