Added some improvements to buildnum

Modified: Makefile
Modified: bin/buildnum