Fixes in config deploy to handle hooks for stop/start services