Fix version detection for Drupal and WordPress