Update md-check-state.sh