Remove intermediate directory