bashFunctions: various bug fixes and long standing updates