scripts: handle gcc and linux in dl_cleanup script