handle creation of a missing directory