fixed cleanup.sh to work with new output format