Object equals correct implementation and reading a File as resource (jar/path)