Update mina deploy.rb to start or restart thin according to its state.