Adding function to shorten present working directory if it's too long

* see http://stackoverflow.com/questions/1616678/bash-pwd-shortening