Add support for parametrization of the sources dir and the project sources dir.