CDAP-5717, I noticed that there are two distinct errors. The first was in the shell scripts, which is fixed in CDAP-5717, the other was in the on-disk location of some data.
After starting Standalone, a directory is created to store some Explore temp files, it appears.
$ ls -al ../.. | grep some
drwxr-xr-x 4 chris staff 136 Feb 16 18:21 some dir
drwxr-xr-x 3 chris staff 102 Feb 16 18:28 some%20dir
The contents of the some%20dir are as follows:
$ find some%20dir
I would assume that somewhere in the Explore service, we're using a URL-encoded PATH versus the raw PATH, properly quoted or with spaces escaped.