Fixed #224 (Failure to launch If app name has a quote in it)

Path is now in quotes instead of replacing spaces.

Also added a switch statement instead of using an if statement.