minor patch so directories create parents as expected