PHP: Fix for broken upgrade/rebuild logic on libcurl or libssl packages upgrade.