Replace Makefile with bash script