Internal "umask" command: minor improvements

Fix the argument range check.
When called without arguments, return the current umask.