ensure dir paths not files