fix #1145 ScrollableBodyTest in IE8

Commit 3250a2654c12a46e18bbcdae3662c65ebf56a25b introduced a regression
in IE8 which showed up in ScrollableBodyTest.

In IE8, scroll event is not triggered on #document, but only on window
(other browsers work differently)

http://www.quirksmode.org/dom/events/tests/scroll.html
fix #1143 mocha tests failing on patch builds

New versions of npm (1.4.x) transform the version entry in package.json
from the form like `1.4.17A` to `1.4.17-A` in the env variable.

Hence our build was failing on patch builds when new version of npm was used.