[Bug-fix] Generate correct pom.xml when code.kmd entry is present in kmd

Change-Id: I0ecde0857350561d2b261ff7febf21b644bf18df