Updated Makefile and remove bashism.