Use $BASH_SOURCE to find location of emsdk_env.sh

$_ seems to be unreliable if the first command of my shell is to source the emsdk env script.

Bash source seems to be reliable though.
So the comment "Try not to use bashisms." is referring to the first removed line "#!/bin/bash"? In general it is best not to document deleted code.