update install script, fix new line issue on mac
update installation method