Detect protocol if not provided
Merge pull request #43 from rubenstolk/hotfix/detect-protocol

Detect protocol if not provided, fixes #42