Description
Similar to HADOOP-6630, we should use $BASH_SOURCE instead of $0 to autolocate HBASE_HOME. This allows you to source hadoop-config.sh and it will correctly use its own location instead of the location of the bash script that sourced it.