Use sudo with -E to preserve environment