Fix for accept-licenses script.
Test on OS X on Travis.