update for chmod

chmod rights were not transferred when creating folders, so all folders
were 0755 instead of 0777. Folders are now updated the right way and
for security reasons updated to 0775.