In function `nb' use the basename of the current working directory if no parameter was given.