fixed behavior when installing into an environemtn which does not exist yet