On debian, $0 reported "-bash" not "bash", even when properly sourced

garth@debian:~/nerves-sdk$ source ./nerves-env.sh
ERROR: This scripted should be sourced from bash:

# note, $0 is "-bash" not "bash" on Debian 7.4