add fixing of direcotries in fix-permissions, fix #2364