exit if there are no files

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>