Loosen up the switch_application / switch_runtime matching regex (fixes #4)
Be a bit more resilient in handling errors when switching runtimes