Fixed broken Java 1.7 runtime check.