rewrite attach_dir_desc
rewrite attach_dir_desc

Rewrite as per https://github.com/SimpleMachines/SMF2.1/issues/288
<br/> I agree to the DCO 1.1 at https://github.com/SimpleMachines/SMF2.1/commit/b486a1e52a5f4f1b9ffae37defc6cd864926267d#DCO.txt


MustafaCan/SMF2.1,margarett/SMF2.1,mkress/SMF2.1,MustafaCan/SMF2.1,georaldc/SMF2.1,margarett/SMF2.1,StealthWombat/SMF2.1-more-forkery,georaldc/SMF2.1,mkress/SMF2.1,StealthWombat/SMF2.1-more-forkery,mkress/SMF2.1