Fixing configuration so it works from JARs