Providing dynamic application base directory for shell scripts.

I noticed a FIXME in misc/update_scripts/nix_scripts/tmux/powerline/powerline/segments/uspsetting.sh for editing the path to config. I've extended it to all shell scripts to save myself some pain as nZEDb is not the name of my base install ;-)
If you want this I could probably do something similar for python scripts if needed.