Fix permissions issues when Magento tries to package extensions