Fixed a bug in buildutils