A bunch of changes to the comparison script in order to allow automation. With the next rounds of commits it will be hopefully integrated in Travis CI