Replace git checkout with git show in Makefile