Update pom.xml

added if to prepare-agent execution