Fix files returning null from Files.GetDirectory - ensure all access uses centralised method