fixed issue with path detection in Debug::dump()