make sure that shared folders permissions' are not overwritten
fixes #40 problems with sending emails to shared folders in nightly test