Allows some default settings to be override using ENV

Signed-off-by: Sam Xiao <sam.xs.xiao@gmail.com>