remove extraneous directories