Set environment variables before run login scripts