Fixed handling of source directories that are not directly contained in
the project root folder (this is required for project using Maven
layout)