Preserve the environment when installing CDH