Fixed a performance bug in included_files/2, using findall/3 and sort/2 to avoid duplicates, and moved such predicate to its own module to allow cohesive reusage.