Fix minor issues with curl redirects and check SSH for fast fail