Removed global variables; Sourcing factools' own shell environment file