Remove global variable $DIR in source_sysconfig()
Add check for each variable of etc/sysconfig/qserv

init.d scripts performs simple checks on Qserv services
configuration parameters. These checks, which strenghten
Qserv startup scripts, can be easily avoided with a minor
update to etc/sysconfig/qserv-functions.