Fix version detection with (another) hack