Added .bash_functions include snippet
Minor bash code optimizations