Crappy rework of the model detection on Kindle.

In case it wasn't obvious, I badly suck at lua :D.