Fixed several namespace definitions and updated Directory Cache to use qtil helper methods