Added function to create a directory (recursive)