Bash Environment Variable Scope