style nit: you are inconsistent with mode type here.   -- I prefer 00755 instead of '0755'.  You're using one style here diff style 7 lines up.