Remove excess directory depth