Fixed return value on getting umask