ensure dir ends with /