Bugfixes

 - Handle directory outputs for single item inputs
 - Process each input only once even if it is supplied multiple times
   in the input list

fixes #9
fixes #10