fixed bug in bash_functions
fixed the issue that eg, et would change the dir.