Bash: Function to enter bw environment