normalize filesystem structure