Revert changes to original/first version.
Fix bug in string comaprison.
Fix crash in Attach() when decision plugin rejects the path.