fix path for namespaces without directory component