- Moved the sanitizing of the partial_dir value here from options.c.