Fix option parsing when piping data in via stdin