Remove debugging print
Fix permissions for directories