Fixed the engine name pattern
Merge pull request #1485 from noctarius/fix-openjdk-8

Fixing build on OpenJDK 8 due to new nashorn JavaScript engine