Try not to pollute current shell environment namespace

Namespace pollution happens because the script is supposed to be sourced.
User is now warned if pollution happens.