Thank you Matt and Alex and Hans, I finally re-installed everything from scratch and it all works. No idea what was the source of the trouble (corrupted preference file??) At one point during my tests the ruby scripts started working again, then stopped... Also TMTOOLS is fine now.
Piero