Updated gen_dh_params to run with the POSIX shell