Parse command line options
Add support for requiring directories.