fixed controller name calculation
added support of DAEMONS_ROOT env variable