Honor the umask when changing permissions.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>