bash/prompt: attempt to tame the wdhead/wdtail mess

also fix a bug when $GIT_DIR is set but $GIT_WORK_TREE isn't
environ: add $LINGUAS for autotools
environ: do not set $LANG to see if it breaks anything