Add psr-4 detection when building a namespace

Fixes #9