Filter input files on optional regex

Users can now specify a regex on which to filter the files found when using
the [-d/-r] directory search options. The regex defaults to finding C files.

All manually specified files will still be operated on regardless of the
regex specified.