record latest version only under dev&test env