Fix "mainSourceFile" to be emitted for Project.addBuildSettings with the "shallow" parameter set.

Fixes "dub test" for library targets.