using exec to create recursive directories