Fix for JENKINS-23724 - IE10 crash

This is a rebase of #1346 + a fix for a case sensitive test (on OSX)