fix matheval check in build profiles

currently matheval is always required while it should be only used if present or if requested by user