Correct potential to create a mess

Corrects potential to create a mess when multiple command line arguments are accidentally used in place of a work_dir.