fix check for osc

this is proper way of testing presence of osc