Stop wrapping around at EOF on reading script files

Reading scripts during device playback does not wrap around at EOF any more.
This more closely reproduces how real devices behave. If we actually get an
use case for wrapping around, we can do this by adding a new operation type
to script files, such as 'j'ump or 'l'oop.