grunt build target directory should be configurable

All the places where we reference ./target in the grunt build should use a variable like DESTDIR which can be set at build time.