Fix some Coverity issues.
Quote Plugin Dir
Update copyright.
Fix enum values.