Fix #23: output dir now created if it doesn't already exist.