The previous patch for 2.8.0 didn't actually work at all, as
HAIKU was not defined. Also moved the nested function to its
own local function, as was running into weird crashes otherwise.
* Referring the current haiku version explicitly is not needed, since
the RequiresUpdater takes care of setting the version of Haiku used
for building a package.