In "Status report" it just outputs the string "version", which causes problems when querying Drupal version
That is weird. What does line 11 of the file modules/system/system.module read? For me, it is define('VERSION', '6.22'). How did you obtain the Drupal source files? Via a zipfile or through a git check out perhaps?