Somewhat portable determining script directory

This should be portable across Bash and ksh, but seems to
fall down if script is sourced (. ~/pwdistro/addpw.sh)
Scripts now know the directory they exist in