Fix compat check for release build

Allow both snapshot and release version of jar when performing the compatibility check.