Fix syntax error in setup.sh
EC: Fix problem in startscript when not login shell
EC: Fix permissions of mkeventd_open514