Check umask with bash's umask builtin for portability across Darwin and Linux