parent-dirs of java.prefix might not exist

equivalent of mkdir -p
Merge pull request #4 from tcotav/master

parent-dirs of java.prefix might not exist