Fix maxpath to initialise the logging infrastructure.