Changed created dir permission to 0766