pick home and config path from environment if set.