fix miss in copy/paste
fix for case sensitive os
fix: the varible, not the string
improve linux compatibility
move init to plugin file