Moves version detection to separate private function
Adds curl fallback to version_detect if allow_url_fopen = false

Bumps verstr