fix #150 - dir attrib recursive broken

Fixing issue in 0.5.7 code wrt directory attrib recursion.