Refactor consolidate funcs in Go Plugin.
Refactor consolidate funcs in Go Plugin.

Refactored functionality for consolidating files when ConsolidateChildDirs is enabled into ConsolidateFiles func. This will be useful for upcoming Requires support during building, to ensure projects which require others that depend on consolidated files will run (and clean themselves up).

Refactored cleanup functionality to CleanupFiles func.
JoshStrobl/noodles,JoshStrobl/noodles