Fix version string detection