Port configure script to Node, step 5: check requirements.

Progress on #7.