Added some nbutility and made use of it in the makefile.