Fix use of directory as 3rd argument

Fixes #6
exit when option is not recognized