$_ seems to be unreliable if used as first command of shell
Improve cross-shell compatibility
Merge pull request #22 from aidanhs/aphs-bash-source

Use $BASH_SOURCE to find location of emsdk_env.sh