@jreback this is what I meant before - need to not replace if it has a dirname.