don't fail on versions without a file
rewrite version selection to use a trigger (#3336)