(#18229) - Eroneous command given in puppet module error message

Fixed the error message to read --target-dir instead of --dir
Merge pull request #1513 from casharma/bugfix/module/18229

(#18229) - Eroneous command given in puppet module error message