Match directory permission with 755 instead of 644

Directories need the execution bit being set therefore instead of 644, it needs 755.
Merge pull request #6086 from alvin-chang/patch-1

Match directory permission with 755 instead of 644