check-open-descriptors.sh: syntax fixes