build: fix umask detection bashism