Added forgottent errno header file. Move true_path allocation in code.