[bash] Setting an environment variable before a command in Bash is not working for the second command in a pipe