Fix calculation for whether there is only a pom file