cleaned up the code a lot, made it launch tbb if it's installed, and fixed _read_version_file bug