renamed prefix to path
extracted is_prefix method
catch SyntaxErrors while parsing commandline values. Fixes #30