fixed docker registry check script