Fix non-registry directories not being recognised in routing