Fixed update code for magento package installer
Fixed update code for magento patch installer