add folder permissions for sub directories. Fixes #609