Fix recusive POM scanner for test builds