Fixed use of the buildtype variable