Fixes #3182: Added namespace support for controllers in subdirectories