fix check for shred executable

Fixes the check for a `shred` executable by checking the return value of `which` rather than using a `-f` test.

I've tested this on Ubuntu 12.04 and OS X (where `sh` is really `bash`).

Also included is an automatic trailing whitespace fix which I'm happy to remove if you feel it doesn't belong.

Closes #5