update dumpWindowHierarchy method so that it returns created dump file