Allow path to tern.py to contain spaces

Escape the script filename to handle spaces in the script path.