Removes getenv craziness out of lib and leaves it to values passed to __construct