Shorten number of directories shown in prompt string.