Accept both a source file or a directory for a worker.
rename workerdir to worker to mean both the directory and source file.