fix wordexp not to read past end of string ending with lone backslash