bugfix: case where .post script on dir would not be run

bug reported by Robert Verkerk
update Changelog
Merge branch 'dir_post_bug'
fix bug; sometimes .post script on dir was not run