Added logging of current script version
Cleaned up log : now new session is logged before everything else and at the right place in the code