Remove bin and gen dirs.