sinatra: don't require rails
sinatra: only set agent.sockfile_path if it hasn't been set