Use makefile instead of bash
Fixed CI script