Fixed a few issues with spaces and quoting. Executable can now be symlinked.

I added a few double-quotes here and there and made the call to `JSON.sh` more generic so that the script can be run from any directory / symlink.