Changed condition for detection of 'active' testruns

As requested by Dmitry. Will work correctly only with the latest version of OSTF