psm_build_url(): only add https for port 443, http for the rest