Added Listener logic to package unintsall

* Added Logic to remove the left over module name after composer package uninstall
* Updated logic for magento default root directory
* Removed updateJsonExtra call when magento default root directory is used