protocol_version method: fix for newer cowboy versions when cowboy is used with mochiweb_request

Newer Cowboy versions return HTTP version as 'HTTP/1.1' and 'HTTP1.0' atoms, instead of {1,1}, {1,0} as it was earlier. This commit converts atoms to old-fashioned tuples, works with both new and old cowboy versions.