generate correct type, rather than assuming it's a directory. This allows Amd direct mounts to work correctly.