Get current directory in bash scripts