more usable mkdir function