Fixed crash on #include by replacing all refs to waitForJIP with script snippet