Made buildapp installation robust.