allow single files in exclude paths

This PR allows you to set ```--exclude=/path/to/file.c``` instead of only taking a directory argument. My use case is to avoid uploading results for swig generated files.