fileutils: cleanup after file search