lib/java: PropertiesUtils: take directoryName