Add automatic version detection