walk around to resolve the path issue in dumpWindowHierarchy method.