[FLINK-1243] Remove JVM MaxPermSize parameter when we use Java 8

JVM for Java 8 doesn't accept MaxPermSize parameter so let's remove it when we use Java 8.