fixed issue where parsing exceptions result in stack traces
changed os.walk() to os.listdir() for when --input-dir is used, fixing directory traversal behavior