Make sure mechanize uses absolute url