Don't read non-perl files when determining the build order

This fixes Farabi6 installation.