Fix chmod on post-receive hook