d/g-d-w.sh: expanding the starter script

The starting script is expaneded to do some sanity checks after adding
the the implementation of the postinst/postrm scripts.