Fixed #419

The code assumed the directories where always first in a Jar file