patch applied (cabal): Simplify smartCopySources using findFileWithExtension' and copyFiles