Kemar Roofe made the most of some confusion in the Livingston penalty area to poke home a third goal for Rangers in the Scottish Premiership.