refactor resource printer's version handling (to make adding --watch feature easier)