Minor improvements:

* do not remove the tmp directory if not created by the script
* checkout nb sources directly to the temp directory.  this avoids
  local modifications for ending up in the tarball, also avoids copying