[REM3-187] Fix JAR version detection
Better close up the stream too