Fixing auto-update php script.