Build: Makefiles: improve "make uninstall" target
... mainly by trying to remove the directories (if empty) created by install
(at the top level and daemons/schedulerd). Everything else appears to be
properly uninstalled.
Also remove some dead code and replace a deprecated automake macro in the
affected code.