do not publish if which fails

cd doesn't work with unexpanded ~ in path, while bash does, which can
lead to achievements being unlocked with git-achievements not in path
which will lead to commits being made against the current git
repository, which is really ugly