isEngineSatisfied = (scEngine, scVersion) => {
  if (!scEngine) return true;
  if (semver.validRange(scEngine) === null) {
    getState().log(4, `invalid engine property: ${scEngine}`);
    return true;
  }
  const safeScVersion = scVersion || getState().scVersion;
  if (semver.valid(safeScVersion) === null) {
    getState().log(4, `invalid saltcorn version: ${scVersion}`);
    return true;
  }
  return semver.satisfies(safeScVersion, scEngine, { includePrerelease: true });
}
check if 'scVersion' fullfilles 'scEngine'
@param scEngine fixed version or range of saltcorn versions (e.g. ">=1.0.0")
@param scVersion optional saltcorn version (if not set it will be taken from the state)
@returns true if the saltcorn version fullfilles scEngine