Fix fork handling

There was an off-by-one error in the block height to check. I also added
a little more information to the console log message.