LegacyImageJApp: specify artifactId properly

This fixes an issue where the ImageJ2 version was reported as "Unknown"
in the distribution bundle. The reason it happened is that
LegacyImageJApp is part of ij-legacy, not ij-core, so we need to look
for the ij-legacy POM, not the ij-core one, relative to this class.