require correct version of sinatra.

Fix mistakes such as  #2103