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/ .