checkremotecerts.sh fix test logic

Script would return 0 even connecting to the remote host failed.