[NX-232] Determine pom files based on extension not file name