[dice.rb] Add better parsing and sanity checking

These changes provide better parsing and sanity checking for the dice script, as well as enhanced user notification for failure modes.