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

Fixed the error message to read --target-dir instead of --dir