Added option to set base url so it will work with SSH urls now.

Stricter matching to prevent false positives.