fixed processing stdout info to match platform differences