@Kalja: w00t! Thanks for sticking with me, and your quick responses

.
TL;DR for those interested: trying to detect the Kindle version from the buildnumber in version.txt is starting to become a highly inaccurate science. (The fact that I used stricter version checking than Yifan's original script didn't help...).