Update version check file to use json format

http://tracker.phpbb.com/browse/PHPBB3-9871

Alternative to https://github.com/phpbb/phpbb/pull/2000