Fixed the problem when qcubed is deployed in a deeper directory structure.

e.g. /var/www/qcubed/2.2/ instead of /var/www/qcubed/