Provide support for Solaris

This PR makes a few minor changes to ensure that BATS is able to run correctly on Solaris (tested on Solaris 10)
It should be present on any operating system that is POSIX compliant, as I understand it.
As for why it's not already in PATH (on Solaris) - who knows.
Good idea on silencing stderr though, will amend the patch.