Improve command-line options when running benchmarks on JDK8

Do not pass `-XX:MaxPermSize` when running on JDK8.