break distro detection out into a separate script
dynamically determine $bashrc_dir, source detect-distro.sh from anywhere
detect-distro.sh: make executable, improve/simplify logic
replace some regex matching with a case block