Restore exports for environment detection variables