Oil rebounds from eight-month lows