buildautomenu: fix variables that gone horribly wrong