[SPARK-3425] do not set MaxPermSize for OpenJDK 1.8

It would work if you add backslahes before the open and close parentheses and increment the final numbers to \2 and \3.