#2241 moved chmod up before verify_shared_folders check