changed the way version file is copied