Added platform check for oqgraph script