Open DH params file before dropping root
check freopen return status