Fix artifact file extension when deprecated options.type parameter is used.