Updated Composer postPackageInstall method.