Added support for specifying the repository through the environment.