Fixing several instances of unbound $@ for picky shells

Actually, just posh can't handle an empty $@, this commit
fixes it.