Fix buildbug script