Cross-platform fix; use custom cucumber dependency

- The current cucumber dependency hash some IE compatibility fixes. It
  should be updated when the fixes have landed in cucumber-js.
- The backup declaration of `window` was moved so the selftest script
  would work.