Fixed path lookup to handle nested Java apps.
Merge pull request #1492 from menivaitsi/nested-java-apps

Fixed path lookup to handle nested Java apps.