Use inline shell script in Makefile instead of Python script

This should be more portable and gets rid of the helper script.