check for empty output folder. fixes #17