Update permissions to set not only user but group/other permissions when using chmod in response to issue #165