Remove unlinked- commands
Don't dereference null tty.path
Add session index syntax for session-targets
Return %error when things go wrong