fixed GH #198: The application.configDir property is not always created.