Fix the path for output files.
Added logic to give to the lib's pom file a correct name.