chmod.test: fix the tests to work on mksh as well as bash.

mksh doesn't support the {a..b} bashism or the ${!name} bashism, causing
the tests to fail on Android.

This works for me on both mksh and bash (both tested on Debian).
1 file changed