Updated to check for "OS X" and not just "Mac OS" against the Java
System property "os.name" to determine which platform defaults to apply.