On solaris use the tail in /usr/xpg4/bin/tail insteaf of /usr/bin/tail which does not support the -n option
Merge madazone/buildbot:upstream-master (PR #1065)
apply 09749e7 to master