Move to minimist and fixes #117