Add fix for command line parsing. Simplify processing of jar files

Worked with msavy for issue #13.