Fix relative path detection for ssh://host:port/repo.git

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>