scripts/shell: fix handling of arguments containing spaces (fix reading into array).