added --subdirs option, closes issue #15