Small fix for people that have JDK 1.8 installed on MacOSX and don't bother to fix their links

(cherry picked from commit 8b5ec648423b7672846ca93f362269019bac3f94)