Do not use _POWERLINE_SHORTENED_PATH or unset it shortly after using

Fixes #1068
Add tests
Merge pull request #1069 from ZyX-I/workaround-1068

Do not use _POWERLINE_SHORTENED_PATH or unset it shortly after using