fileutils: clean up after detecting "." or ".." before continue