Make holmes.sh a little more portable.

holmes.sh should now work on Linux and FreeBSD.