Bash Variable Scope Definition