honour resolved aliases when scanning directories