create directories: implement mkdir_p