Fixing permissions

Fixed permissions setting not recursing into subdirectories