Improved attribute retrieval so it works for UNC share roots.