PMO-2838: chaged logic to find the active simulation profile