Add psr-4 detection when building a namespace