cvs-plugin part of fix for JENKINS-23234: update after review: add curlies for if, simplify and remove references to issue in log output and comments, use listener.error in case of exception when checking for symlink.