added support for passing dockerfiles in addition to paths