support for running pub on folders
Merge pull request #1876 from keertip/pub

support for running pub on folders