Fix for setting REPO in Makefile, and some tweaks to release scripts.