Generate correct Uri Prefix when using a custom Directory Namer