Updated discover.sh to remove sub* temp files

After a bit more testing I realized I hadn’t truly solved the issue.