Remove unnecessary modules and variables
Remove redundant rule from .npmignore

node_modules is ignored by default.
Use minimist directly instead of using optimist

https://github.com/substack/minimist