Core/Scripts: fix build