Added more debug logging of the detected subdirectory