Update cxxnet_main.cpp

fix device id error in some machines, due to sscanf behavior difference