I've bumped compatibility to 0.18 in info.json, but don't have factorio installed to test it.
Mod lua is pretty simple, so it should probably work fine, unless 0.18 changed the few bits that lua uses, but do let me know if it does not, guess I'll revert compatibility info back to 0.17 and mark it as deprecated.
Also, if you have any ideas on how to fix or improve it in any way, feel free to fork and change/reupload it as you see fit, and maybe let me know, so I can link updated version in the description here and deprecate this unmaintained one.
Haven't played factorio for a while myself, and dunno if I'll ever get back to it, unfortunately.