chmod credentials after downloading

Without this push will not work (at least not on MacOSX)
Merge pull request #594 from markijbema/patch-1

chmod credentials after downloading