Support supplying a directory instead of a BED file.