add back setting of directory perms

done per @coderanger's advice