fixed stupid race condition and do not override pom.xml if it already exists
fixed a silly bug