sort found files for more repeatable build

Due to hash randomization feature in perl, the found files array will have
random order between build runs, making it more inconvenient when tracking
failures in the middle. This commit sorts the found files to remedy that.
Merge from github/modified commit bd04cf8