Finish strmode_to_rawmode; fixups for android 1.6 through 2.3 (their ls doesn't support -n or grouped options)