Fix for #213

Was caused by invalid options for getopt