Minor updates to 'rilmodem' test scripts

to make them executable in a current Ubuntu x86 emulator environment.

Some of these changes depend on reference-RIL change https://code-review.phablet.ubuntu.com/#/c/270/ .
Out of curiosity, which is the value for "Revision" that made this change fail?