1. remove conf dictory, replaced with class members
2. clear up code with a new fuction: get_os_type()

Signed-off-by: Wit <wit@maxwit.com>