Work gets underway on new £10m school to replace "unfit