polyfill documentation.  Also don't spin in an infinite loop if the nc command isn't found.