Fix version in preferences footer

Fixed version.php to read from HEAD rather than ORIG_HEAD