save permissions tweak

* change umask permissions to constants
* drop the user write - prevents file from being deleted on win32
* fix tests to pass on win32