Fix umask function regex

Some grep implementations complain of empty subexpression

fixes #1313