File permissions upon resources files creation

When creating API modules and/or services, folders created are set with 0777 permission flag.
Should be 775.