added dot shortening for long paths