I was about to submit a pull request with the exact same fix, but I ignore the consequences on other platforms.
Also: is this the correct fix or the correct one is from arch-angel in https://github.com/garrynewman/bootil/pull/9?