Update bash/functions/bashmod

* Fix bug when sourced with a relative path from the same directory
  (`source bashmod') and BASH_MODULES_PATH was not set
* Fight environment pollution