fix sed bug on mac

1. there is no need to add \n to pom file. and for unknown reason \n will not escape on mac. so just remove it.
2. there is not necessary to have space before <groupId> <version> and <artifactId> any chars will be fine.
    If someone have other chars before them, sed will NOT work. so I changed it.