Rewrite of lamebuildtool (lbt).