corrections of building scripts (now working)