unset BUNDLE_GEMFILE instead of env -i.

This allows the previous PATH to be used, which may be needed to find hbase.

Also add an idempotence guard (based on the presence of HBASE_CLASSPATH.)