now using system call to implement mkdir