Fix port splitting logic to accomodate ssl: repositories for perforce.

If the perforce server uses ssl, there will be two colons in the P4PORT path
specifier. This would break our port-splitting logic.

Fixes bug 2572.
Reviewed at http://reviews.reviewboard.org/r/3719/