use 0755 instead of 0700

Fixes #585 

Not sure how to add regression test on this.