Add directory prep to attributes file