Allow running cgminer in benchmark mode with a work file --benchfile
format fix and bad variable usage fix for --benchfile
Merge pull request #546 from kanoi/master

Allow running cgminer in benchmark mode with a work file --benchfile