Fix config directory detection under Mono