Adding an optional directory argument to the CLI for the check command

Not sure if the specs meet with your expectations. Let me know if you'd like me to rework them in a particular way.