Add fallback for gzdecode (only exists in PHP >= 5.4.0)

Bug: 54058
Change-Id: I62a843aec4657a3d4895d34535cc2be42d4552fd