Fixed nested file discovery.
Fixed test for script prefixes.