PHP: Fix for forced rebuild mode if lib curl is broken or updated from packages.