name buffers smartly

When opening files with the same name, as happens often in big
programming projects, prepend file name with its enclosing directory
in the buffer's mode line.