Use awk in Makefile

Small change to Makefile to make it more simple and to avoid printing the long `sed` command when compiling.