Improve handling of single/multiple files

Use glob to find the filenames input from the command line, rather than
assume the whole folder is of interest.