Update poster.py

I have added code to take input json files from a directory if -d option is given with the arguments. Hence, user can either give output as individual json files from stdin or provide a directory where json files reside.