Added support for sgminer variants

Added support for sgminer v4.x and other variants