getJobPath = (name, acceptedExtensions, defaultExtension) => {
  const extFindArray = acceptedExtensions.map((ext) => {
    return ext.startsWith('.') ? ext : `.${ext}`;
  });

  const hasExt = extFindArray.find((ext) => name.endsWith(ext));

  if (hasExt) return name;

  return defaultExtension.startsWith('.')
    ? `${name}${defaultExtension}`
    : `${name}.${defaultExtension}`;
}
Processes job name to generate a partial path for the job
Allows for resiliancy when the path extensions are either
provided or not on both default and accepted extensions

@param {string} name
@param {number} acceptedExtensions
@param {string} defaultExtension
@returns {string} job path