Bug fixes. Offset of -1 to the appended char, disambiguating input
directory from save_dir.