Filter base and home directory parts when looking for a file

This allows to override in base a file imported by another one in home.
Propagate the application ID to the Java OSGi framework