osx/defaults.sh: add missing options
osx/defaults.sh: add missing brackets
osx/defaults.sh: add missing -a in test
osx/defaults.sh: add missing quotes around `$userOnly`