Simplify smartCopySources using findFileWithExtension' and copyFiles Previously it used moduleToFilePath2 which returns all the locations in which a source file is found, in different search dirs and with different extensions and it just collected all these locations. This is totally bogus since we do not want to copy multiple source files per-module, only one of them could have been used to be pre-processed into the final source module. This is one example of how almost every use of moduleToFilePath is convoluted or broken. This function it still used for too many different purposes, witness the two flags to customise its behaviour which at all call sites are constants.
Simplify smartCopySources using findFileWithExtension' and copyFiles
Previously it used moduleToFilePath2 which returns all the locations in which
a source file is found, in different search dirs and with different extensions
and it just collected all these locations. This is totally bogus since we do
not want to copy multiple source files per-module, only one of them could have
been used to be pre-processed into the final source module. This is one
example of how almost every use of moduleToFilePath is convoluted or broken.
This function it still used for too many different purposes, witness the two
flags to customise its behaviour which at all call sites are constants.

ian-ross/cabal,themoritz/cabal,ghc-android/cabal,martinvlk/cabal,enolan/cabal,anton-dessiatov/cabal,lukexi/cabal,rimmington/cabal,typelead/epm,alphaHeavy/cabal,plow-technologies/cabal,corngood/cabal,seereason/cabal,mightybyte/cabal,garetxe/cabal,kosmikus/cabal,rimmington/cabal,gridaphobe/cabal,thoughtpolice/cabal,plumlife/cabal,triplepointfive/cabal,mmakowski/cabal,typelead/epm,x-y-z/cabal,ian-ross/cabal,eric-stanley/cabal,themoritz/cabal,garetxe/cabal,alphaHeavy/cabal,trskop/cabal,fpco/cabal,Helkafen/cabal,Heather/cabal,bennofs/cabal,gbaz/cabal,randen/cabal,triplepointfive/cabal,seereason/cabal,randen/cabal,themoritz/cabal,bennofs/cabal,sopvop/cabal,headprogrammingczar/cabal,anton-dessiatov/cabal,fpco/cabal,mmakowski/cabal,corngood/cabal,kolmodin/cabal,mydaum/cabal,martinvlk/cabal,gbaz/cabal,sopvop/cabal,fugyk/cabal,mightybyte/cabal,christiaanb/cabal,gridaphobe/cabal,headprogrammingczar/cabal,thomie/cabal,mydaum/cabal,x-y-z/cabal,beni55/cabal,edsko/cabal,kolmodin/cabal,Helkafen/cabal,plow-technologies/cabal,valderman/cabal,thomie/cabal,trskop/cabal,beni55/cabal,Peaker/cabal,christiaanb/cabal,lukexi/cabal,kosmikus/cabal,edsko/cabal,plumlife/cabal,Peaker/cabal,fugyk/cabal,eric-stanley/cabal,valderman/cabal,ghc-android/cabal,thoughtpolice/cabal,Heather/cabal,enolan/cabal,sopvop/cabal