Use system() to determine clipboard on linux and redirect stderr.

Hey,

here are a few changes. The main reason was to get rid of the error messages of the which command.

- system() returns boolean, that's what we need here
- redirect stderr to /dev/null to avoid ugly error messages