properly handle the --distdir cmdline argument.
process_dir.c: handle and report errors here.