Use a regular expression to parse out React.version.

This fixes a silent failure of the test suite that appears to be due to
the call require('./build/modules/React').
Merge pull request #344 from benjamn/fix-silent-test-failure-due-to-requiring-React

Use a regular expression to parse out React.version