Added functions to shorten the directory displayed in ibuffer and the mode line.