fixed processing of long options with equal sign

How to test:
:Pandoc! pdf --template=SOME_TMPL --smart

not fixed code will claim that option --template must not have an
argument

Fix for issue #20 is also added here