[enhancement] robustify option parsing (with default values)
[enhancement] added Mac packaging stuffs