Running Compiled AppleScript from DMG Doesn't Work
As I mentioned in my answer to your other question:

Note that when using this in a do shell script command, use quoted form of to allow for spaces in the path filename.

Otherwise you'd need to escape spaces with a backslash \, and that can get messy.

Example: quoted form of appPath
You might want to do the concatenation separately and then pass it to the command.