Fixed up get_inode() and print_dir()