Bug 1041370 - Fix script entry hook #ifdefing (a=RyanVM)