fix options.output check

I think you meant to check for options.output instead, maybe a copy and paste error?