Reorders check.sh to delete bad mesh paths before checking if it's got routes