Updated curl check script