Changing remote regexp to match other protocols +tests (fixes #15)