Added path collapsing to keep the command prompt shorter.