Fixed issue with umask not being set