Fix a problem in getSourcePath()

We had some issues using '.' as working directory, so I replaced it with mavenProject.getBaseDir() and now it works in a deterministic way.
Using '.' as working directory was not really secure.