make librpc/build_idl.sh more portable