Fix broken bin/after_failure.sh

It now works on Ubuntu as well as OSX