fail faster when mkdir fails