Fixes bug 377.  Ledger now complains if it is given only a directory as input.