_lp_shorten_path: set value for locals on separate line (zsh)

zsh doesn't like if we set the value of a local while we declare it.