moved version parser to lib folder