Oracle JDK 6 comes as a self extracting binary files, not as a tar

Oracle JDK 6 comes as .bin and not as a .tar.gz. This code should handle this case.