(base_name): If NAME is all slashes, return `/' (in conformance with the single unix spec). Reported by Peter Moulder.