fixed print_directory bug. Tested mkdir and create