Fixed a copy&paste bug that cause the output directory to be reset when actually the most recent input directory should be reset.
Changelog updated.