main: Support passing bare directory names to commit

It segfaulted before if you passed non-options, and a single directory
name is probably what people want.