remove redundant directory