Minor enhancements of .travis.install.deps.sh

* `set -e` (script should crash on first error)
* detect darwin if running not on travis (and `PLATFORM` and `TRAVIS_OS_NAME` variables are unset)