Strip RCS version ID from the version string STR. If the result looks like a dotted numeric version, return it. Otherwise return nil.