The script now fails if caffe is in compatible. I also added gcc because compiling with gcc from the host PC (Idiap machines) .
caffe
gcc