fix scaffolding errors for puma on amazon ami