Rewriting mkdir to be compiled and tested.