Limit Java7 Linux workaround to Java7 on Linux.