Fix directory removal.
Merge pull request #15 from rjhunter/fix_jdk

Fix jdk