Fixed useradd/chkconfig/update-rc.d logic and made $PLUGIN_DIR optional