Fixed wrong assumption of pattern for generated files.