Replace generate_filelist with shell

Signed-off-by: zdd <zddhub@gmail.com>