CB-7863 Fixed broken test run on Windows 8.1

Alternative fix for https://issues.apache.org/jira/browse/CB-7863

Seems the cause of fatal error under Windows was in synchronous calls to prepare-browserify that is asynchronous in its nature.