Fixed a few bugs referenced in issue #5

Bugs include:
    - null string passed as argument possibly causing crash
    - unquoted application string in registry causes app to fail to
      startup when application path contains a space