Upgrade ninja and fix file permissions
Upgrade motor