Fixed pure ruby mrbgems can't compile and fixed build script wrong variable name