Fixes #4409: Upper case letters in subdirectory prefixes of controller IDs were not properly handled